<?php
/**
 * Created by PhpStorm.
 * User: marek
 * Date: 26/10/13
 * Time: 14:14
 */
namespace Jhub1_Admin\Form;

use Zend\Form\Form;

class Login extends Form
{
    public function __construct($name = null)
    {
        parent::__construct('application');
        $this->setAttribute('method', 'post');
        $this->add(
            array(
                'name' => 'email',
                'attributes' => array(
                    'type' => 'text',
                ),
                'options' => array(
                    'label' => 'email',
                ),
            )
        );
        $this->add(
            array(
                'name' => 'password',
                'attributes' => array(
                    'type' => 'text',
                ),
                'options' => array(
                    'label' => 'password',
                ),
            )
        );
        $this->add(
            array(
                'name' => 'submit',
                'attributes' => array(
                    'type' => 'submit',
                    'value' => 'register',
                    'id' => 'submitbutton',
                ),
            )
        );
    }
}
